package com.cloud.rou.im.protocol.cmd;


import com.cloud.rou.im.protocol.serialize.SerializeTypeConstants;
import lombok.Data;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 * @since 2019-10-29 9:50
 */
@Data
public class CmdHeader {

    public static final short MAGIC = 0x86;


    public static final short VERSION = 0x01;

    /**
     * the magic
     */
    private short magic= CmdHeader.MAGIC;

    /**
     * version
     */
    private short version = CmdHeader.VERSION;


    /**
     * the Serialize Type
     * the default value is {SerializeTypeConstants.PROTO_STUFF}
     * @see SerializeTypeConstants
     */
    private byte serializeType = SerializeTypeConstants.PROTO_STUFF;



}
